Inserting Variables into Word
You can insert a variable into a source document after you apply a Microsoft Word template that contains the variables to your source document. If you want to use a variable that is not defined in a Microsoft Word template, you must create the variable in your source document before you can insert it. For more information about creating a variable, see Creating Variables in Word.
The following procedure provides an example of how to insert variables in Microsoft Word source documents using Microsoft Word 2007 or 2010.
Note: Newer versions of Word may or may not use this exact procedure, however this may provide enough information to get working with variables in Word.
To insert a variable (
DocProperty field) into a Microsoft Word document- Open the Microsoft Word source document in which you want to insert a variable.
- Place your cursor in the location where you want to insert the variable.
- Go to the Insert ribbon and click on the Quick Parts dropdown and then select Field...
- In the Field names selection box, select
DocProperty - In the adjacent selection box labeled Property, select the appropriate variable name to insert in your document
Last modified date: 01/28/2026